home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Shareware / Programare / sharp / wwwSharp_setup.exe / {app} / Examples / Config / Assembly / Config.cs next >
Text File  |  2003-12-24  |  655b  |  26 lines

  1. using System.Reflection;
  2. using System.Configuration;
  3.  
  4. [assembly: AssemblyTitle("")]
  5. [assembly: AssemblyDescription("")]
  6. [assembly: AssemblyConfiguration("")]
  7. [assembly: AssemblyCompany("")]
  8. [assembly: AssemblyProduct("")]
  9. [assembly: AssemblyCopyright("")]
  10. [assembly: AssemblyTrademark("")]
  11. [assembly: AssemblyCulture("")]
  12. [assembly: AssemblyVersion("1.0.0.0")]
  13. [assembly: AssemblyKeyFile("")]
  14.  
  15. namespace wwwSharp.ClrHost.Examples
  16. {
  17.     public class Config
  18.     {
  19.         public string GetConfigValue(string key)
  20.         {
  21.             AppSettingsReader settings = new AppSettingsReader();
  22.             return (string)settings.GetValue(key, typeof(string));
  23.         }
  24.     }
  25. }
  26.